import { Injectable } from '@angular/core';
import {
  Http,
  Response,
  URLSearchParams,
  Headers,
  RequestOptions,
  RequestOptionsArgs
} from '@angular/http';

import { Observable } from 'rxjs/Observable';
import { BehaviorSubject } from 'rxjs/BehaviorSubject';
import 'rxjs/add/observable/throw';
import 'rxjs/add/operator/catch';
import 'rxjs/add/operator/map';

import { environment } from '../../../environments/environment';
import { HttpClient } from '@angular/common/http';

@Injectable()
export class DictService {
    private apiBaseUrl = environment.apiBaseUrl;

    // 原料单位
    UnitDataType = [
        { key: 'box', value: '箱' },
        { key: 'bottle', value: '瓶' },
        { key: 'bag', value: '袋' },
        { key: 'frame', value: '盒' },
        { key: 'pack', value: '包' },
        { key: 'ml', value: '毫升' },
        { key: 'g', value: '克' },
        { key: 'block', value: '块' },
        { key: 'piece', value: '个' },
        { key: 'sheet', value: '片' },
        { key: 'station', value: '台' },
        { key: 'only', value: '只' },
        { key: 'root', value: '根' },
        { key: 'drop', value: '滴' },
        { key: 'part', value: '份' },
        { key: 'stretch', value: '张' }
    ];

    // 流程状态
    FlowStatus = [
        { key: '待产品部完善', value: '待产品部完善' },
        { key: '待运营部完善', value: '待运营部完善' },
        { key: '待市场部完善', value: '待市场部完善' },
        { key: '完成', value: '完成' },
    ];

    // 上下架状态
    PubStatus = [
        { key: '未上架', value: '未上架' },
        { key: '上架', value: '上架' },
    ];

    constructor () {}



}
